package com.googlecode.smartbinding.framework.core;

/**
 * Bean property property descriptor. <br/>
 *
 * @author Iulian Dumitru
 */
public class PropertyDescriptor {

    private String propertyName;
    private Object propertyValue;
    private Class<?> propertyType;
    private Object bean;

    public String getPropertyName() {
        return propertyName;
    }

    public void setPropertyName(String propertyName) {
        this.propertyName = propertyName;
    }

    public Object getPropertyValue() {
        return propertyValue;
    }

    public void setPropertyValue(Object propertyValue) {
        this.propertyValue = propertyValue;
    }

    public Class<?> getPropertyType() {
        return propertyType;
    }

    public void setPropertyType(Class<?> propertyType) {
        this.propertyType = propertyType;
    }

    public Object getBean() {
        return bean;
    }

    public void setBean(Object bean) {
        this.bean = bean;
    }

    @Override
    public String toString() {
        return "PropertyDescriptor{" +
                "propertyName='" + propertyName + '\'' +
                ", propertyValue=" + propertyValue +
                ", propertyType=" + propertyType +
                ", bean=" + bean +
                '}';
    }

}
